package com.itcast.service;

import com.itcast.dao.FriendDao;
import com.itcast.dao.FriendDaoImpl;
import com.itcast.pojo.Friendlist;

import java.util.List;

public class FriendServiceImpl implements FriendService {

    private FriendDao friendDao = new FriendDaoImpl();

    @Override
    public List<Friendlist> findAllFriendlist(String userId) {
        return friendDao.findAllFriendlist(userId);
    }

    @Override
    public void InsertFriend(String userId, String friendId) {
        friendDao.InsertFriend(userId, friendId);
    }

    @Override
    public void DeleteFriend(String userId, String frendId) {
        friendDao.DeleteFriend(userId, frendId);
    }
}
